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

add function 'assert' to JavaScript global #28

Closed
wants to merge 1 commit into from

Conversation

@evilpie
Copy link
Contributor

evilpie commented Aug 28, 2013

This adds an "assert" function that I believe behaves kind of like the assert! macro, but instead of aborting we throw an exception. This exception is actually catchable which is inline with assertEq used in SpiderMonkey and has never really caused issues.

The idea is that we would remove this function and replace it with something defined in a test harness later.

@evilpie evilpie closed this Aug 29, 2013
@evilpie evilpie deleted the evilpie:add-assert branch Aug 29, 2013
mmatyas pushed a commit to mmatyas/rust-mozjs that referenced this pull request Jul 30, 2015
Fix debug and release compiles.
tschneidereit pushed a commit to tschneidereit/rust-mozjs that referenced this pull request Aug 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.