Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
jsone
jsone-1.8.0-stacktrace.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jsone-1.8.0-stacktrace.patch of Package jsone
diff -Ndurp jsone-1.8.0/src/jsone.erl jsone-1.8.0-stacktrace/src/jsone.erl --- jsone-1.8.0/src/jsone.erl 2023-02-10 15:12:37.000000000 +0200 +++ jsone-1.8.0-stacktrace/src/jsone.erl 2023-03-10 13:13:35.696250482 +0200 @@ -300,17 +300,6 @@ %% but it is not exported from the module. %% So, maybe as a temporary measure, we redefine this type for passing full dialyzer analysis. --ifdef('OTP_RELEASE'). -%% The 'OTP_RELEASE' macro introduced at OTP-21, -%% so we can use it for detecting whether the Erlang compiler supports new try/catch syntax or not. --define(CAPTURE_STACKTRACE, :__StackTrace). --define(GET_STACKTRACE, __StackTrace). --else. --define(CAPTURE_STACKTRACE, ). --define(GET_STACKTRACE, erlang:get_stacktrace()). --endif. - - %%-------------------------------------------------------------------------------- %% Exported Functions %%-------------------------------------------------------------------------------- @@ -341,8 +330,8 @@ decode(Json, Options) -> check_decode_remainings(Remainings), Value catch - error:{badmatch, {error, {Reason, [StackItem]}}} ?CAPTURE_STACKTRACE-> - erlang:raise(error, Reason, [StackItem | ?GET_STACKTRACE]) + error:{badmatch, {error, {Reason, [StackItem]}}}:StackTrace -> + erlang:raise(error, Reason, [StackItem | StackTrace]) end. @@ -395,8 +384,8 @@ encode(JsonValue, Options) -> {ok, Binary} = try_encode(JsonValue, Options), Binary catch - error:{badmatch, {error, {Reason, [StackItem]}}} ?CAPTURE_STACKTRACE-> - erlang:raise(error, Reason, [StackItem | ?GET_STACKTRACE]) + error:{badmatch, {error, {Reason, [StackItem]}}}:StackTrace -> + erlang:raise(error, Reason, [StackItem | StackTrace]) end.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor