Closed Bug 392072 Opened 17 years ago Closed 7 years ago

Incorrect old value passed to watch-handler watching __proto__?

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 638054

People

(Reporter: Waldo, Unassigned)

Details

js> var c = {}; js> c.watch("__proto__", function (p, o, n) { if (o !== Object.prototype) throw "Er, what??? " + o; }); js> c.__proto__ = (function(){}).__proto__; uncaught exception: Er, what??? undefined I'm reasonably certain this is a bug, but I'm not 100% sure, hence the UNCO. This definitely appears on trunk, and I think it's on branch as well, but I didn't run this exact test to check.
Assignee: general → nobody
watch() was removed in bug 638054.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.