private static void StoreScriptable(Context cx, Scriptable value) { // The previously stored scratchScriptable should be consumed if (cx.scratchScriptable != null) { throw new InvalidOperationException(); } cx.scratchScriptable = value; }