diff --git a/test/annexB/built-ins/Date/prototype/setYear/time-clip.js b/test/annexB/built-ins/Date/prototype/setYear/time-clip.js index 27352d0e340bb2148cd6ac2a6aae5b176276d3b3..c1f0883ea41a649aa6cfe7a42ee2dfa6419f72a1 100644 --- a/test/annexB/built-ins/Date/prototype/setYear/time-clip.js +++ b/test/annexB/built-ins/Date/prototype/setYear/time-clip.js @@ -15,7 +15,7 @@ info: | var date; -date = new Date(1970, 8, 12, 20, 0, 0, 0); +date = new Date(1970, 8, 10, 0, 0, 0, 0); assert.notSameValue( date.setYear(275760), NaN, 'method return value (valid date)' @@ -24,7 +24,7 @@ assert.notSameValue( date.valueOf(), NaN, '[[DateValue]] internal slot (valid date)' ); -date = new Date(1970, 8, 12, 20, 0, 0, 1); +date = new Date(1970, 8, 14, 0, 0, 0, 0); assert.sameValue( date.setYear(275760), NaN, 'method return value (invalid date)' diff --git a/test/built-ins/DataView/prototype/setFloat64/detached-buffer-after-toindex-byteoffset.js b/test/built-ins/DataView/prototype/setFloat64/detached-buffer-after-toindex-byteoffset.js index 367c749def6d665136cf1a31a9ea27437d6e0c5a..341c520b51ba09fb1de47e42463b46f8304ed9e3 100644 --- a/test/built-ins/DataView/prototype/setFloat64/detached-buffer-after-toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/setFloat64/detached-buffer-after-toindex-byteoffset.js @@ -28,7 +28,7 @@ var sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); -assert.throws(TypeError, function() { +assert.throws(RangeError, function() { sample.setFloat64(Infinity, 0); }, "Infinity"); diff --git a/test/built-ins/DataView/prototype/setInt16/detached-buffer-after-toindex-byteoffset.js b/test/built-ins/DataView/prototype/setInt16/detached-buffer-after-toindex-byteoffset.js index f193bde4fe80cf1b9128cce5ac7d93520aa05512..d619af6c1469e6e603501a3efc8996813a24aeae 100644 --- a/test/built-ins/DataView/prototype/setInt16/detached-buffer-after-toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/setInt16/detached-buffer-after-toindex-byteoffset.js @@ -28,7 +28,7 @@ var sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); -assert.throws(TypeError, function() { +assert.throws(RangeError, function() { sample.setInt16(Infinity, 0); }, "Infinity"); diff --git a/test/built-ins/Date/prototype/setFullYear/new-value-time-clip.js b/test/built-ins/Date/prototype/setFullYear/new-value-time-clip.js index 83aa448f97fa20adce96f6a9bd282db23b53b43a..b3d73dd27fd885deac6af40f6eff521d1d9492f2 100644 --- a/test/built-ins/Date/prototype/setFullYear/new-value-time-clip.js +++ b/test/built-ins/Date/prototype/setFullYear/new-value-time-clip.js @@ -44,6 +44,6 @@ assert.sameValue(returnValue, NaN, 'overflow due to month'); date = new Date(maxMs); -returnValue = date.setFullYear(maxYear, maxMonth, maxDate + 1); +returnValue = date.setFullYear(maxYear, maxMonth, maxDate + 2); assert.sameValue(returnValue, NaN, 'overflow due to date'); diff --git a/test/built-ins/Date/prototype/setMonth/new-value-time-clip.js b/test/built-ins/Date/prototype/setMonth/new-value-time-clip.js index 71e850544cf9bd8be11f9426b962cbd6256bdf15..3ea6b8f90aedba44c4d6e1aed503e56f3ddf0511 100644 --- a/test/built-ins/Date/prototype/setMonth/new-value-time-clip.js +++ b/test/built-ins/Date/prototype/setMonth/new-value-time-clip.js @@ -37,6 +37,6 @@ assert.sameValue(returnValue, NaN, 'overflow due to month'); date = new Date(maxMs); -returnValue = date.setMonth(maxMonth, maxDate + 1); +returnValue = date.setMonth(maxMonth, maxDate + 2); assert.sameValue(returnValue, NaN, 'overflow due to date'); diff --git a/test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js b/test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js index ad1a918e4f4a53c2a34723a67521bd77df506e58..c051a457dbf08950035997c6d09680baf6bd2cd0 100644 --- a/test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js +++ b/test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js @@ -19,9 +19,9 @@ features: [class] ---*/ var C = $.createRealm().global.eval( - 'class C extends Object {' + + '(class C extends Object {' + ' constructor() {}' + - '}' + '});' ); assert.throws(ReferenceError, function() { diff --git a/test/built-ins/global/global-object.js b/test/built-ins/global/global-object.js index 21be0f7692a9921fba0b15cee987a0c12274d14f..d3efe5415c38725aa7381a2b05224748f72a0ed9 100644 --- a/test/built-ins/global/global-object.js +++ b/test/built-ins/global/global-object.js @@ -22,5 +22,5 @@ assert.sameValue(Number, global.Number); assert.sameValue(RegExp, global.RegExp); assert.sameValue(String, global.String); -globalVariable = {}; +var globalVariable = {}; assert.sameValue(globalVariable, global.globalVariable); diff --git a/test/language/block-scope/syntax/redeclaration-in-block/attempt-to-redeclare-function-declaration-with-function-declaration.js b/test/language/block-scope/syntax/redeclaration-in-block/attempt-to-redeclare-function-declaration-with-function-declaration.js index df3332bc708d5f961cc23fd1892d6e977e8f0b7e..adedef2b9da60525080bc182d625c9ddb0698903 100644 --- a/test/language/block-scope/syntax/redeclaration-in-block/attempt-to-redeclare-function-declaration-with-function-declaration.js +++ b/test/language/block-scope/syntax/redeclaration-in-block/attempt-to-redeclare-function-declaration-with-function-declaration.js @@ -8,6 +8,7 @@ description: > negative: phase: early type: SyntaxError +flags: [onlyStrict] ---*/ { function f() {} function f() {} } diff --git a/test/language/expressions/async-generators/expression-yield-as-statement.js b/test/language/expressions/async-generators/expression-yield-as-statement.js index 9647c0bb397336ebdd732635693605f27a5334f5..f952461eacd833f02f785f07a8159158a0d7d9db 100644 --- a/test/language/expressions/async-generators/expression-yield-as-statement.js +++ b/test/language/expressions/async-generators/expression-yield-as-statement.js @@ -19,7 +19,7 @@ iter1.next().then(function(result) { assert.sameValue( result.done, false, "Without right-hand-side: first result `done` flag"); }).then(undefined, $DONE); -iter1.next(function(result) { +iter1.next().then(function(result) { assert.sameValue( result.value, undefined, "Without right-hand-side: second result `value`"); assert.sameValue( @@ -33,7 +33,7 @@ iter2.next().then(function(result) { assert.sameValue( result.done, false, "With right-hand-side: first result `done` flag"); }).then(undefined, $DONE); -iter2.next(function(result) { +iter2.next().then(function(result) { assert.sameValue( result.value, undefined, "With right-hand-side: second result `value`"); assert.sameValue( diff --git a/test/language/module-code/namespace/internals/own-property-keys-binding-types.js b/test/language/module-code/namespace/internals/own-property-keys-binding-types.js index 3df54646b4cd789772e3f090ea62c9bc32b3bc1d..568ace3b70185d1e56e8acca91a8193191bfecda 100644 --- a/test/language/module-code/namespace/internals/own-property-keys-binding-types.js +++ b/test/language/module-code/namespace/internals/own-property-keys-binding-types.js @@ -53,7 +53,7 @@ assert( var allKeys = Reflect.ownKeys(ns); assert( - allKeys.length > 11, + allKeys.length >= 11, 'at least as many keys as defined by the module and the specification' ); assert.sameValue(allKeys[0], 'a_local1'); diff --git a/test/language/module-code/namespace/internals/own-property-keys-sort.js b/test/language/module-code/namespace/internals/own-property-keys-sort.js index 6eea98033e0d5de89ceb7f8fee72ec60ba5e3a2c..22adb704b45c72682bdac431420559457b7c545c 100644 --- a/test/language/module-code/namespace/internals/own-property-keys-sort.js +++ b/test/language/module-code/namespace/internals/own-property-keys-sort.js @@ -55,7 +55,7 @@ assert.sameValue(stringKeys[15], '\u03c0', 'stringKeys[15] === "\u03c0"'); var allKeys = Reflect.ownKeys(ns); assert( - allKeys.length > 17, + allKeys.length >= 17, 'at least as many keys as defined by the module and the specification' ); assert.sameValue(allKeys[0], '$', 'allKeys[0] === "$"'); diff --git a/test/language/module-code/namespace/internals/set-prototype-of-null.js b/test/language/module-code/namespace/internals/set-prototype-of-null.js index 405641cfc50861a52fbc6a6b889ea1f02aaa823d..19e90f6b20cff654aeb46edcdfa0329399711f3c 100644 --- a/test/language/module-code/namespace/internals/set-prototype-of-null.js +++ b/test/language/module-code/namespace/internals/set-prototype-of-null.js @@ -11,4 +11,4 @@ flags: [module] import * as ns from './set-prototype-of-null.js'; assert.sameValue(typeof Object.setPrototypeOf, 'function'); -assert.sameValue(ns, Object.setPrototypeOf(ns, null); +assert.sameValue(ns, Object.setPrototypeOf(ns, null)); diff --git a/test/language/statements/async-function/early-errors-no-async-generator.js b/test/language/statements/async-function/early-errors-no-async-generator.js deleted file mode 100644 index 9c4d2b47133d9b2112f0ab35e92c1c37a74d9c54..0000000000000000000000000000000000000000 --- a/test/language/statements/async-function/early-errors-no-async-generator.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2016 Microsoft, Inc. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -author: Brian Terlson <brian.terlson@microsoft.com> -esid: pending -description: > - Async generators are not a thing (yet) -negative: - phase: early - type: SyntaxError ----*/ - -async function* foo() { }