|
@@ -0,0 +1,29 @@
|
|
|
+# HG changeset patch
|
|
|
+# User Shu-yu Guo <shu@rfrn.org>
|
|
|
+# Date 1501629591 25200
|
|
|
+# Node ID 15744cd370e0e274244681121836ba2dbac1526f
|
|
|
+# Parent 727ed3b85a4829280d80dfcb7bea7af14f23c5ab
|
|
|
+No bug - PromiseHelper.js -> promiseHelper.js due to rename in test262-update.py (r=me)
|
|
|
+
|
|
|
+diff --git a/js/src/tests/test262-update.py b/js/src/tests/test262-update.py
|
|
|
+--- a/js/src/tests/test262-update.py
|
|
|
++++ b/js/src/tests/test262-update.py
|
|
|
+@@ -322,17 +322,17 @@ def process_test262(test262Dir, test262O
|
|
|
+ writeShellAndBrowserFiles(test262OutDir, harnessDir, includesMap, localIncludesMap, "")
|
|
|
+
|
|
|
+ # Additional explicit includes inserted at well-chosen locations to reduce
|
|
|
+ # code duplication in shell.js files.
|
|
|
+ explicitIncludes = {}
|
|
|
+ explicitIncludes[os.path.join("built-ins", "Atomics")] = ["testAtomics.js",
|
|
|
+ "testTypedArray.js"]
|
|
|
+ explicitIncludes[os.path.join("built-ins", "DataView")] = ["byteConversionValues.js"]
|
|
|
+- explicitIncludes[os.path.join("built-ins", "Promise")] = ["PromiseHelper.js"]
|
|
|
++ explicitIncludes[os.path.join("built-ins", "Promise")] = ["promiseHelper.js"]
|
|
|
+ explicitIncludes[os.path.join("built-ins", "TypedArray")] = ["byteConversionValues.js",
|
|
|
+ "detachArrayBuffer.js", "nans.js"]
|
|
|
+ explicitIncludes[os.path.join("built-ins", "TypedArrays")] = ["detachArrayBuffer.js"]
|
|
|
+
|
|
|
+ # Process all test directories recursively.
|
|
|
+ for (dirPath, dirNames, fileNames) in os.walk(testDir):
|
|
|
+ relPath = os.path.relpath(dirPath, testDir)
|
|
|
+ if relPath == ".":
|