Bug 1290021 - Implement a prototype version of Houdini "Worklets Level 1" spec - part 6 - assertions, r=smaug
authorAndrea Marchesini <amarchesini@mozilla.com>
Sun, 06 Nov 2016 09:56:03 +0100
changeset 351375 f99b99cc076d06251bf16725647d52f65bf17d4d
parent 351374 c77883513897e595255f14289a9f76c66b0167d1
child 351376 82d1209499f2c551d13362f1cf52d291443548bd
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1290021
milestone52.0a1
Bug 1290021 - Implement a prototype version of Houdini "Worklets Level 1" spec - part 6 - assertions, r=smaug
dom/worklet/Worklet.cpp
dom/worklet/tests/mochitest.ini
--- a/dom/worklet/Worklet.cpp
+++ b/dom/worklet/Worklet.cpp
@@ -322,16 +322,20 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(
 NS_INTERFACE_MAP_END
 
 Worklet::Worklet(nsPIDOMWindowInner* aWindow, nsIPrincipal* aPrincipal)
   : mWindow(aWindow)
   , mPrincipal(aPrincipal)
 {
   MOZ_ASSERT(aWindow);
   MOZ_ASSERT(aPrincipal);
+
+#ifdef RELEASE_OR_BETA
+  MOZ_CRASH("This code should not go to release/beta yet!");
+#endif
 }
 
 Worklet::~Worklet()
 {}
 
 JSObject*
 Worklet::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
 {
--- a/dom/worklet/tests/mochitest.ini
+++ b/dom/worklet/tests/mochitest.ini
@@ -1,9 +1,10 @@
 [DEFAULT]
+skip-if = release_or_beta
 support-files =
   common.js
 
 [test_basic.html]
 support-files=file_basic.html
 [test_console.html]
 support-files=file_console.html worklet_console.js
 [test_import_with_cache.html]