зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1295101
- Don't freeze the ctypes.jsm global to avoid resolving all properties on it. r=bholley
This commit is contained in:
Родитель
6e070dd30b
Коммит
a10a34601b
|
@ -107,9 +107,7 @@ InitAndSealCTypesClass(JSContext* cx, JS::Handle<JSObject*> global)
|
|||
!SealObjectAndPrototype(cx, global, "Error"))
|
||||
return false;
|
||||
|
||||
// Finally, seal the global object, for good measure. (But not recursively;
|
||||
// this breaks things.)
|
||||
return JS_FreezeObject(cx, global);
|
||||
return true;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче