Closed Bug 771936 Opened 10 years ago Closed 9 years ago

Scratchpad ignores "use strict"

Categories

(DevTools Graveyard :: Scratchpad, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: till, Unassigned)

References

(Depends on 1 open bug)

Details

When run from the scratchpad, both

"use strict";
window.indexedDB = "foo";
console.log(window.indexedDB);

and

console.log((function(){
"use strict";
window.indexedDB = "foo";
return window.indexedDB;
})());

successfully log "[object IDBFactory]" to the console instead of throwing because of the attempted write to a setter-less property.
probably a sandbox bug. Curious though.

Filter on BLACKEAGLE?!
Priority: -- → P3
This might be related to bug 480245.
Oh, indeed: that looks like it's probably the reason.
Depends on: 480245
Dropping evalInSandbox in favor of the debugger API would fix this, too (bug 723556, bug 825039).
This is resolved by 825039 landing.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.