close method
dynamic
close()
Free Runtime and Context which can be recreate when evaluate again.
Implementation
close() {
final rt = _rt;
final ctx = _ctx;
_rt = null;
_ctx = null;
if (ctx != null) jsFreeContext(ctx);
if (rt == null) return;
_executePendingJob();
try {
jsFreeRuntime(rt);
} on String catch (e) {
throw JSError(e);
}
}