blob: 3dbb4c63161e5827cf5cbb4a2e82b3a6138da422 [file] [log] [blame]
description(
"Tests that posting a message that consists of an object with a numeric property doesn't try to reify the property as a named property."
);
if (window.testRunner)
testRunner.waitUntilDone();
window.onmessage = function(e) {
var foo = e.data;
if (foo[0] == "hi")
testPassed("e.data[0] is 'hi'");
else
testFailed("e.data[0] is not 'hi'");
if (testRunner)
testRunner.notifyDone();
}
window.postMessage({0:"hi"}, "*");