Skip to content

Wrap bridged NSError objects in JavaScript Errors#458

Merged
jasssonpet merged 1 commit intomasterfrom
fealebenpae/wrap-nserror-when-throwing
Dec 30, 2015
Merged

Wrap bridged NSError objects in JavaScript Errors#458
jasssonpet merged 1 commit intomasterfrom
fealebenpae/wrap-nserror-when-throwing

Conversation

@fealebenpae
Copy link
Copy Markdown
Contributor

Introduce the new NSErrorWrapper that will wrap an NSError thrown in JavaScript so that it can retain the message and stack properties expected in all JavaScript errors.

@fealebenpae fealebenpae self-assigned this Dec 30, 2015
@fealebenpae fealebenpae added this to the 1.6.0 (Under review) milestone Dec 30, 2015
@fealebenpae fealebenpae force-pushed the fealebenpae/wrap-nserror-when-throwing branch 2 times, most recently from 4b0a023 to 8797f1f Compare December 30, 2015 14:58
Introduce the new NSErrorWrapper that will wrap an NSError thrown in JavaScript so that it can retain the message and stack properties expected in all JavaScript errors.
@fealebenpae fealebenpae force-pushed the fealebenpae/wrap-nserror-when-throwing branch from 8797f1f to 526f920 Compare December 30, 2015 15:01
@ns-bot
Copy link
Copy Markdown

ns-bot commented Dec 30, 2015

Test PASSed.

jasssonpet added a commit that referenced this pull request Dec 30, 2015
…en-throwing

Wrap bridged NSError objects in JavaScript Errors
@jasssonpet jasssonpet merged commit 5c86544 into master Dec 30, 2015
@jasssonpet jasssonpet deleted the fealebenpae/wrap-nserror-when-throwing branch December 30, 2015 15:52
Comment thread src/ts/Interop.d.ts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be declare-d? I'm receiving the following error:

error TS1038: A 'declare' modifier cannot be used in an already ambient context.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thats's a good point - please feel free to fix it in-line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants