summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/defaultvalue-toString-is-noncallable-object.js
blob: f0a30d11583e8fedade3a8e5a51d574700c13aee (plain)
1
2
3
var obj = { toString: {}, valueOf: function() { return "foopy"; } };
for (var i = 0; i < 25; i++)
  assertEq(String(obj), "foopy");