javascript - Object.defineProperty breaks chrome window -
so, wanted set in 1 part of page document.domain property can't set, used call:
object.defineproperty( document, "domain", { writable: false, enumerable: true, configurable: true });
and later in page have phone call changes writable
attribute true:
object.defineproperty( document, "domain", { writable: true, enumerable: true, configurable: true });
however, after setting true, chrome window breaks , bluish screen message: aw snap! went wrong while displaying webpage
. what's wrong here ?
javascript google-chrome
No comments:
Post a Comment