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 321330 f99b99cc076d06251bf16725647d52f65bf17d4d
parent 321329 c77883513897e595255f14289a9f76c66b0167d1
child 321331 82d1209499f2c551d13362f1cf52d291443548bd
push id30923
push userphilringnalda@gmail.com
push dateMon, 07 Nov 2016 02:21:38 +0000
treeherdermozilla-central@908557c762f7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1290021
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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]