Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for IE8 #17

Merged
merged 4 commits into from
Dec 17, 2014
Merged

Fix for IE8 #17

merged 4 commits into from
Dec 17, 2014

Conversation

teppeis
Copy link
Contributor

@teppeis teppeis commented Dec 13, 2014

Fixed some issues in IE8.

  • Use Object_keys shim instead of native Object.keys
  • Fix Object_keys shim to throw an TypeError for non-boject value
  • Fix isArguments because typeof arguments is not '[object Arguments]' in IE8
  • Fix RegExp test case

@@ -286,7 +325,7 @@ testAssertionMessage('foo', '"foo"');
testAssertionMessage([], '[]');
testAssertionMessage([1, 2, 3], '[1,2,3]');
testAssertionMessage(/a/, '"/a/"');
testAssertionMessage(/abc/gim, '"/abc/gim"');
testAssertionMessage(/abc/g, '"/abc/g"');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • (/abc/gim).toString() returns '/abc/igm' in IE8
  • (/abc/igm).toString() returns '/abc/gim' in Chrome

So test just /abc/g. The flags are not important in this test case.

Jxck added a commit that referenced this pull request Dec 17, 2014
@Jxck Jxck merged commit ad0fe63 into Jxck:master Dec 17, 2014
@Jxck
Copy link
Owner

Jxck commented Dec 17, 2014

thanks:)

@teppeis
Copy link
Contributor Author

teppeis commented Dec 21, 2014

thank you! 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants