HomeWildfire Games

[SM52 2/2] Update to Spidermonkey 52 APIs.

Description

[SM52 2/2] Update to Spidermonkey 52 APIs.

No particularly noteworthy changes, as most complex API changes were already supported in SM45 and done.
The addition of JSStructuredCloneData allows to remove our custom class.

Changes:

  • InformalValueTypeName is back in the API, so remove our implementation.
  • Stop using JSRuntime entirely in favour of JSContext*
  • JSPropertyDescriptor is renamed.
  • CompartmentOptions are tweaked slightly (no functional changes)
  • JS::Construct - API update.
  • JSClass split - API update.
  • A js.msg error message was removed, so we had to use a different one.
  • Tests fix: fix comparison of union instances
  • Disable warning in spidermonkey Vector.h
  • Update error reporting to SM52 (minor API updates)
  • Ignore warnings about unused return values (would come from OOM, which isn't recoverable)

Most of the patching was done by Itms.

Tested by: Stan, Freagarach

Fixes #4893

Differential Revision: https://code.wildfiregames.com/D3095