[jsc-dev] I would like to consult a JavaScriptCore question, I beg your help~~

Geoffrey Garen ggaren at apple.com
Mon May 7 09:35:57 PDT 2018


The global object no longer supports JSObjectSetPrototype. We made this change to align with web standards.

If you have an object full of properties that you use in global scope, my recommendation is to inject the object into global scope as a namespace. So, if you previously had...

	myObject = { doThing1 = function () { … } }; // global object prototype

…and you wrote global code like…

	doThing1();

…now you would write global code like…

	myObject.doThing1();

Geoff

> On May 4, 2018, at 10:26 PM, linlin_miao <linlin_miao at foxitsoftware.cn> wrote:
> 
> 
> Hello!
> 
> I would like to consult a JavaScriptCore question, I beg your help~~
> Because of the need of business, prototype can be set up for global object through interface JSObjectSetPrototype before using JavaScriptCore.
> But after upgrading, it is found that this method is invalid. We still need this kind of business in particular.
> So if we want to consult you, what can we do to achieve it?
> I look forward to it. Thank you for your reply.
> 
> Good luck!
> 
> linlin_miao
> 
> 
> _______________________________________________
> jsc-dev mailing list
> jsc-dev at lists.webkit.org <mailto:jsc-dev at lists.webkit.org>
> https://lists.webkit.org/mailman/listinfo/jsc-dev <https://lists.webkit.org/mailman/listinfo/jsc-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/jsc-dev/attachments/20180507/d2b87ca0/attachment.html>


More information about the jsc-dev mailing list