Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: test/mjsunit/messages.js

Issue 2305573002: [regexp] Port RegExp getters and setters (Closed)
Patch Set: Fix for layout test expectations Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --stack-size=100 --harmony 5 // Flags: --stack-size=100 --harmony
6 // Flags: --harmony-simd 6 // Flags: --harmony-simd
7 7
8 function test(f, expected, type) { 8 function test(f, expected, type) {
9 try { 9 try {
10 f(); 10 f();
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 Object.preventExtensions(o); 116 Object.preventExtensions(o);
117 Object.defineProperty(o, "x", { value: 1 }); 117 Object.defineProperty(o, "x", { value: 1 });
118 }, "Cannot define property:x, object is not extensible.", TypeError); 118 }, "Cannot define property:x, object is not extensible.", TypeError);
119 119
120 // kFirstArgumentNotRegExp 120 // kFirstArgumentNotRegExp
121 test(function() { 121 test(function() {
122 "a".startsWith(/a/); 122 "a".startsWith(/a/);
123 }, "First argument to String.prototype.startsWith " + 123 }, "First argument to String.prototype.startsWith " +
124 "must not be a regular expression", TypeError); 124 "must not be a regular expression", TypeError);
125 125
126 // kFlagsGetterNonObject
127 test(function() {
128 Object.getOwnPropertyDescriptor(RegExp.prototype, "flags").get.call(1);
129 }, "RegExp.prototype.flags getter called on non-object 1", TypeError);
130
131 // kFunctionBind 126 // kFunctionBind
132 test(function() { 127 test(function() {
133 Function.prototype.bind.call(1); 128 Function.prototype.bind.call(1);
134 }, "Bind must be called on a function", TypeError); 129 }, "Bind must be called on a function", TypeError);
135 130
136 // kGeneratorRunning 131 // kGeneratorRunning
137 test(function() { 132 test(function() {
138 var iter; 133 var iter;
139 function* generator() { yield iter.next(); } 134 function* generator() { yield iter.next(); }
140 var iter = generator(); 135 var iter = generator();
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 Number(1).toString(100); 445 Number(1).toString(100);
451 }, "toString() radix argument must be between 2 and 36", RangeError); 446 }, "toString() radix argument must be between 2 and 36", RangeError);
452 447
453 448
454 // === URIError === 449 // === URIError ===
455 450
456 // kURIMalformed 451 // kURIMalformed
457 test(function() { 452 test(function() {
458 decodeURI("%%"); 453 decodeURI("%%");
459 }, "URI malformed", URIError); 454 }, "URI malformed", URIError);
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698