Commit 2c3fda91 authored by littledan's avatar littledan Committed by Commit bot

test262 roll

Review-Url: https://codereview.chromium.org/2595403002
Cr-Commit-Position: refs/heads/master@{#41965}
parent 9c9f1870
...@@ -35,7 +35,7 @@ deps = { ...@@ -35,7 +35,7 @@ deps = {
Var("chromium_url") + "/v8/deps/third_party/mozilla-tests.git" + "@" + "f6c578a10ea707b1a8ab0b88943fe5115ce2b9be", Var("chromium_url") + "/v8/deps/third_party/mozilla-tests.git" + "@" + "f6c578a10ea707b1a8ab0b88943fe5115ce2b9be",
"v8/test/simdjs/data": Var("chromium_url") + "/external/github.com/tc39/ecmascript_simd.git" + "@" + "baf493985cb9ea7cdbd0d68704860a8156de9556", "v8/test/simdjs/data": Var("chromium_url") + "/external/github.com/tc39/ecmascript_simd.git" + "@" + "baf493985cb9ea7cdbd0d68704860a8156de9556",
"v8/test/test262/data": "v8/test/test262/data":
Var("chromium_url") + "/external/github.com/tc39/test262.git" + "@" + "fb61ab44eb1bbc2699d714fc00e33af2a19411ce", Var("chromium_url") + "/external/github.com/tc39/test262.git" + "@" + "6a0f1189eb00d38ef9760cb65cbc41c066876cde",
"v8/test/test262/harness": "v8/test/test262/harness":
Var("chromium_url") + "/external/github.com/test262-utils/test262-harness-py.git" + "@" + "0f2acdd882c84cff43b9d60df7574a1901e2cdcd", Var("chromium_url") + "/external/github.com/test262-utils/test262-harness-py.git" + "@" + "0f2acdd882c84cff43b9d60df7574a1901e2cdcd",
"v8/tools/clang": "v8/tools/clang":
......
...@@ -90,6 +90,18 @@ function $DONE(arg){ ...@@ -90,6 +90,18 @@ function $DONE(arg){
quit(0); quit(0);
}; };
var $ = { function RealmOperators(realm) {
evalScript(script) { return Realm.eval(Realm.current(), script); } let $ = {
}; evalScript(script) {
return Realm.eval(realm, script);
},
createRealm() {
return RealmOperators(Realm.createAllowCrossRealmAccess());
},
global: Realm.eval(realm, 'this')
};
$.global.$ = $;
return $;
}
var $ = RealmOperators(Realm.current());
...@@ -105,11 +105,16 @@ ...@@ -105,11 +105,16 @@
'intl402/NumberFormat/11.1.1_1': [FAIL], 'intl402/NumberFormat/11.1.1_1': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=4895 # https://bugs.chromium.org/p/v8/issues/detail?id=4895
'built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer': [FAIL],
'built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer-realm': [FAIL],
'built-ins/TypedArrays/internals/Get/detached-buffer': [FAIL],
'built-ins/TypedArrays/internals/Get/detached-buffer-realm': [FAIL],
'built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer': [FAIL],
'built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer-realm': [FAIL],
'built-ins/TypedArrays/internals/HasProperty/detached-buffer': [FAIL], 'built-ins/TypedArrays/internals/HasProperty/detached-buffer': [FAIL],
'built-ins/TypedArrays/internals/HasProperty/detached-buffer-realm': [FAIL],
'built-ins/TypedArrays/internals/Set/detached-buffer': [FAIL], 'built-ins/TypedArrays/internals/Set/detached-buffer': [FAIL],
'built-ins/TypedArrays/internals/GetOwnProperty/detached-buffer': [FAIL], 'built-ins/TypedArrays/internals/Set/detached-buffer-realm': [FAIL],
'built-ins/TypedArrays/internals/Get/detached-buffer': [FAIL],
'built-ins/TypedArrays/internals/DefineOwnProperty/detached-buffer': [FAIL],
# Some TypedArray methods throw due to the same bug, from Get # Some TypedArray methods throw due to the same bug, from Get
'built-ins/TypedArray/prototype/every/callbackfn-detachbuffer': [FAIL], 'built-ins/TypedArray/prototype/every/callbackfn-detachbuffer': [FAIL],
'built-ins/TypedArray/prototype/filter/callbackfn-detachbuffer': [FAIL], 'built-ins/TypedArray/prototype/filter/callbackfn-detachbuffer': [FAIL],
...@@ -194,17 +199,6 @@ ...@@ -194,17 +199,6 @@
# https://bugs.chromium.org/p/v8/issues/detail?id=4034 # https://bugs.chromium.org/p/v8/issues/detail?id=4034
'built-ins/ThrowTypeError/unique-per-realm-function-proto': [FAIL], 'built-ins/ThrowTypeError/unique-per-realm-function-proto': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=5535
'built-ins/ThrowTypeError/unique-per-realm-non-simple': [FAIL],
'built-ins/ThrowTypeError/unique-per-realm-unmapped-args': [FAIL],
'language/arguments-object/10.6-13-b-1-s': [FAIL],
'language/arguments-object/10.6-13-b-2-s': [FAIL],
'language/arguments-object/10.6-13-b-3-s': [FAIL],
'language/arguments-object/10.6-14-1-s': [FAIL],
'language/arguments-object/10.6-14-b-1-s': [FAIL],
'language/arguments-object/10.6-14-b-4-s': [FAIL],
'language/statements/class/strict-mode/arguments-caller': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=4231 # https://bugs.chromium.org/p/v8/issues/detail?id=4231
'language/eval-code/direct/var-env-lower-lex-catch-non-strict': [FAIL], 'language/eval-code/direct/var-env-lower-lex-catch-non-strict': [FAIL],
...@@ -294,9 +288,6 @@ ...@@ -294,9 +288,6 @@
'built-ins/Function/prototype/toString/setter-object': [FAIL], 'built-ins/Function/prototype/toString/setter-object': [FAIL],
'built-ins/Function/prototype/toString/unicode': [FAIL], 'built-ins/Function/prototype/toString/unicode': [FAIL],
# https://github.com/tc39/test262/issues/743
'intl402/Intl/getCanonicalLocales/main': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=5115 # https://bugs.chromium.org/p/v8/issues/detail?id=5115
'language/statements/class/subclass/class-definition-null-proto-missing-return-override': [FAIL], 'language/statements/class/subclass/class-definition-null-proto-missing-return-override': [FAIL],
'language/statements/class/subclass/class-definition-null-proto-this': [FAIL], 'language/statements/class/subclass/class-definition-null-proto-this': [FAIL],
...@@ -361,18 +352,6 @@ ...@@ -361,18 +352,6 @@
'built-ins/Number/S9.3.1_A3_T1_U180E': [FAIL], 'built-ins/Number/S9.3.1_A3_T1_U180E': [FAIL],
'built-ins/Number/S9.3.1_A2_U180E': [FAIL], 'built-ins/Number/S9.3.1_A2_U180E': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=5051
'language/expressions/call/trailing-comma': [FAIL],
'language/statements/class/definition/params-trailing-comma': [FAIL],
'language/statements/class/definition/params-trailing-comma-arguments': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=5326
'language/expressions/super/call-new-target-undef': [FAIL],
'language/eval-code/direct/super-call-fn': [FAIL],
'language/expressions/super/prop-dot-fn-no-super-bndng': [FAIL],
'language/expressions/super/prop-expr-fn-no-super-bndng': [FAIL],
'language/expressions/super/prop-expr-fn-eval-before-has-super': [FAIL],
# https://bugs.chromium.org/p/v8/issues/detail?id=5064 # https://bugs.chromium.org/p/v8/issues/detail?id=5064
'language/expressions/arrow-function/params-dflt-duplicates': [FAIL], 'language/expressions/arrow-function/params-dflt-duplicates': [FAIL],
...@@ -500,6 +479,16 @@ ...@@ -500,6 +479,16 @@
# Test262 Bug: https://bugs.ecmascript.org/show_bug.cgi?id=596 # Test262 Bug: https://bugs.ecmascript.org/show_bug.cgi?id=596
'built-ins/Array/prototype/sort/bug_596_1': [PASS, FAIL_OK], 'built-ins/Array/prototype/sort/bug_596_1': [PASS, FAIL_OK],
# https://github.com/tc39/test262/pull/688#pullrequestreview-14025354
'built-ins/Function/internals/Construct/derived-this-uninitialized-realm': [FAIL],
# https://github.com/tc39/test262/pull/688/files#r93657665
'built-ins/TypedArrays/typedarray-arg-other-ctor-buffer-ctor-custom-species-proto-from-ctor-realm': [FAIL],
'built-ins/TypedArrays/typedarray-arg-same-ctor-buffer-ctor-species-custom-proto-from-ctor-realm': [FAIL],
# https://github.com/tc39/test262/commit/c779cba592fcb39051fd1d467e472ea71aa2b1d6#commitcomment-20276482
'language/statements/class/strict-mode/arguments-caller': [FAIL],
############################ SKIPPED TESTS ############################# ############################ SKIPPED TESTS #############################
# These tests take a looong time to run. # These tests take a looong time to run.
......
...@@ -194,8 +194,9 @@ class Test262TestSuite(testsuite.TestSuite): ...@@ -194,8 +194,9 @@ class Test262TestSuite(testsuite.TestSuite):
test_record = self.GetTestRecord(testcase) test_record = self.GetTestRecord(testcase)
if output.exit_code != 0: if output.exit_code != 0:
return True return True
if "negative" in test_record: if "negative" in test_record and \
if self._ParseException(output.stdout) != test_record["negative"]: "type" in test_record["negative"] and \
self._ParseException(output.stdout) != test_record["negative"]["type"]:
return True return True
return "FAILED!" in output.stdout return "FAILED!" in output.stdout
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment