| Index: test/mjsunit/messages.js
|
| diff --git a/test/mjsunit/messages.js b/test/mjsunit/messages.js
|
| index 3eae74cd354e66bc0400dfaf5304f3185714d4b4..20a93615094eb8af84688c8c16fb1b2e8272c665 100644
|
| --- a/test/mjsunit/messages.js
|
| +++ b/test/mjsunit/messages.js
|
| @@ -2,8 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// Flags: --stack-size=100 --harmony --harmony-reflect --harmony-arrays
|
| -// Flags: --harmony-regexps
|
| +// Flags: --stack-size=100 --harmony --harmony-reflect
|
|
|
| function test(f, expected, type) {
|
| try {
|
| @@ -67,11 +66,6 @@
|
| [].join(Object(Symbol(1)));
|
| }, "Cannot convert object to primitive value", TypeError);
|
|
|
| -// kConstructorNotFunction
|
| -test(function() {
|
| - Uint16Array(1);
|
| -}, "Constructor Uint16Array requires 'new'", TypeError);
|
| -
|
| // kDateType
|
| test(function() {
|
| Date.prototype.setYear.call({}, 1);
|
| @@ -91,11 +85,6 @@
|
| }, "First argument to String.prototype.startsWith " +
|
| "must not be a regular expression", TypeError);
|
|
|
| -// kFlagsGetterNonObject
|
| -test(function() {
|
| - Object.getOwnPropertyDescriptor(RegExp.prototype, "flags").get.call(1);
|
| -}, "RegExp.prototype.flags getter called on non-object 1", TypeError);
|
| -
|
| // kFunctionBind
|
| test(function() {
|
| Function.prototype.bind.call(1);
|
| @@ -133,18 +122,6 @@
|
| 1 in 1;
|
| }, "Cannot use 'in' operator to search for '1' in 1", TypeError);
|
|
|
| -// kIteratorResultNotAnObject
|
| -test(function() {
|
| - var obj = {};
|
| - obj[Symbol.iterator] = function() { return { next: function() { return 1 }}};
|
| - Array.from(obj);
|
| -}, "Iterator result 1 is not an object", TypeError);
|
| -
|
| -// kIteratorValueNotAnObject
|
| -test(function() {
|
| - new Map([1]);
|
| -}, "Iterator value 1 is not an entry object", TypeError);
|
| -
|
| // kNotConstructor
|
| test(function() {
|
| new Symbol();
|
| @@ -178,11 +155,6 @@
|
| test(function() {
|
| Function.prototype.toString.call(1);
|
| }, "Function.prototype.toString is not generic", TypeError);
|
| -
|
| -// kNotTypedArray
|
| -test(function() {
|
| - Uint16Array.prototype.forEach.call(1);
|
| -}, "this is not a typed array.", TypeError);
|
|
|
| // kObjectGetterExpectingFunction
|
| test(function() {
|
|
|