Skip to content

Instantly share code, notes, and snippets.

@pedrodelgallego
Created August 6, 2010 12:48
Show Gist options
  • Save pedrodelgallego/511263 to your computer and use it in GitHub Desktop.
Save pedrodelgallego/511263 to your computer and use it in GitHub Desktop.
"use strict"
var __obj = {
valueOf:function(){},
toString:void 0
};
var __split = new String(__obj).split(function(){}());
if (__split.length !== 2) {
$ERROR('#3: __obj = {valueOf:function(){}, toString:void 0}; __split = new String(__obj).split(function(){}()); __split.length === 2. Actual: '+__split.length );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment