possible fix for spidermonkey vs v8 differing behavior