Index: test/mjsunit/es7/object-observe.js |
diff --git a/test/mjsunit/es7/object-observe.js b/test/mjsunit/es7/object-observe.js |
index 99fa38a8573f1f2db70b3c2a0875d61132202c8b..5af205eadf88f894685efda34256d2acb4800b50 100644 |
--- a/test/mjsunit/es7/object-observe.js |
+++ b/test/mjsunit/es7/object-observe.js |
@@ -1142,8 +1142,7 @@ |
function blacklisted(obj, prop) { |
return (obj instanceof Int32Array && prop == 1) || |
(obj instanceof Int32Array && prop === "length") || |
- (obj instanceof ArrayBuffer && prop == 1) || |
- (obj instanceof Function && prop === "name"); // Has its own test. |
+ (obj instanceof ArrayBuffer && prop == 1) |
} |
for (var i in objects) for (var j in properties) { |
@@ -1799,28 +1798,3 @@ |
for (var n = 0; n < 3; ++n) |
for (var i in mutationByIncr) |
TestFastElementsLength(mutationByIncr[i], b1 != 0, b2 != 0, 7*n, 7*n+1); |
- |
- |
-(function TestFunctionName() { |
- reset(); |
- |
- function fun() {} |
- Object.observe(fun, observer.callback); |
- fun.name = 'x'; // No change. Not writable. |
- Object.defineProperty(fun, 'name', {value: 'a'}); |
- Object.defineProperty(fun, 'name', {writable: true}); |
- fun.name = 'b'; |
- delete fun.name; |
- fun.name = 'x'; // No change. Function.prototype.name is non writable |
- Object.defineProperty(Function.prototype, 'name', {writable: true}); |
- fun.name = 'c'; |
- fun.name = 'c'; // Same, no update. |
- Object.deliverChangeRecords(observer.callback); |
- observer.assertCallbackRecords([ |
- { object: fun, type: 'update', name: 'name', oldValue: 'fun' }, |
- { object: fun, type: 'reconfigure', name: 'name'}, |
- { object: fun, type: 'update', name: 'name', oldValue: 'a' }, |
- { object: fun, type: 'delete', name: 'name', oldValue: 'b' }, |
- { object: fun, type: 'add', name: 'name' }, |
- ]); |
-})(); |