gecko/js/xpconnect/tests/unit/test_bug1033920.js
Bobby Holley 0c673473c1 Bug 1033920 - Handle null in XrayWrapper::setPrototypeOf. v1 r=efaust
From ac73068c4494c0df74329482e57f64ba8ec93cb4 Mon Sep 17 00:00:00 2001
2014-07-02 21:06:28 -07:00

8 lines
198 B
JavaScript

const Cu = Components.utils;
function run_test() {
var sb = Cu.Sandbox('http://www.example.com');
var o = new sb.Object();
o.__proto__ = null;
do_check_eq(Object.getPrototypeOf(o), null);
}