Bug 1050500 followup: Annotate js.cpp "Exit()" method as "override". rs=ehsan, a=sledru
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 14 May 2015 09:14:15 -0700
changeset 262371 1ff6d58a4e0aa2ee19c1f7912ad25b429ba29248
parent 262370 50a6675e974b2008915025872c7e35cf1ed0d71e
child 262372 2346b4e5b5bba5cf596fa303254a628967d56e1d
push id8059
push userbgrinstead@mozilla.com
push dateThu, 28 May 2015 03:50:58 +0000
treeherdermozilla-aurora@b104a8b24b27 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, sledru
bugs1050500
milestone40.0a2
Bug 1050500 followup: Annotate js.cpp "Exit()" method as "override". rs=ehsan, a=sledru
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -4547,17 +4547,17 @@ class ShellAutoEntryMonitor : JS::dbg::A
     void Entry(JSContext* cx, JSScript* script) override {
         MOZ_ASSERT(!enteredWithoutExit);
         enteredWithoutExit = true;
 
         UniqueChars label(JS_smprintf("eval:%s", JS_GetScriptFilename(script)));
         oom = !label || !log.append(mozilla::Move(label));
     }
 
-    void Exit(JSContext* cx) {
+    void Exit(JSContext* cx) override {
         MOZ_ASSERT(enteredWithoutExit);
         enteredWithoutExit = false;
     }
 
     bool buildResult(JSContext *cx, MutableHandleValue resultValue) {
         if (oom) {
             JS_ReportOutOfMemory(cx);
             return false;