Scratchpad ignores "use strict"

RESOLVED WORKSFORME

Status

P3
normal
RESOLVED WORKSFORME
6 years ago
3 months ago

People

(Reporter: till, Unassigned)

Tracking

(Depends on: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
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.
(Reporter)

Comment 3

6 years ago
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
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME

Updated

3 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.