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

Unified Diff: test/mjsunit/es6/function-name-configurable.js

Issue 1080393004: [es6] Function.prototype.name should be the empty string (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | test/mjsunit/es6/function-prototype-name.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/function-name-configurable.js
diff --git a/test/mjsunit/es6/function-name-configurable.js b/test/mjsunit/es6/function-name-configurable.js
index f0ff406da86d0f0c39648ba4785eeede43c47cf0..68ba82d705d25e50dd98170e7c476977f79d6422 100644
--- a/test/mjsunit/es6/function-name-configurable.js
+++ b/test/mjsunit/es6/function-name-configurable.js
@@ -90,10 +90,10 @@ test(testFunctionToString);
function f() {}
delete f.name;
- assertEquals('Empty', f.name);
+ assertEquals('', f.name);
f.name = 42;
- assertEquals('Empty', f.name); // non writable prototype property.
+ assertEquals('', f.name); // non writable prototype property.
assertFalse(f.hasOwnProperty('name'));
Object.defineProperty(Function.prototype, 'name', {writable: true});
@@ -108,7 +108,7 @@ test(testFunctionToString);
function f() {}
assertTrue(delete f.name);
assertFalse(f.hasOwnProperty('name'));
- assertEquals('Empty', f.name);
+ assertEquals('', f.name);
assertTrue(delete Function.prototype.name);
assertEquals(undefined, f.name);
« no previous file with comments | « src/bootstrapper.cc ('k') | test/mjsunit/es6/function-prototype-name.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698