What is the difference between Entered Context and Current Context?

24 views
Skip to first unread message

Amaranth F

unread,
Jul 5, 2016, 3:30:32 AM7/5/16
to v8-users
I found that sometimes the current has a value but the entered is empty, so what is the difference?
Thanks.

Ben Noordhuis

unread,
Jul 5, 2016, 4:45:52 AM7/5/16
to v8-users
The entered context is the last context you, the embedder, explicitly
entered with context->Enter or through an instance of Context::Scope.

The current context changes implicitly when a function calls a
function from another context (and changes back when that function
returns.)

Amaranth F

unread,
Jul 5, 2016, 5:04:51 AM7/5/16
to v8-users
OK I see. Thank you!

在 2016年7月5日星期二 UTC+8下午4:45:52,Ben Noordhuis写道:
Reply all
Reply to author
Forward
0 new messages