Which one is correct?
Chrome returns false
Object.getPrototypeOf(Object.getPrototypeOf(history)) === Object.prototype
false
Fireforx return true
Object.getPrototypeOf(Object.getPrototypeOf(history)) === Object.prototype
true
Both.
The specification doesn't precise the type of the object or how the browser creates it, but only an interface.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.