Explorar o código

Throw keyword is not a function.

Piotrek Koszuliński %!s(int64=11) %!d(string=hai) anos
pai
achega
275069fc2e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/ckeditor5-utils/tests/ckeditor/ckeditor.js

+ 1 - 1
packages/ckeditor5-utils/tests/ckeditor/ckeditor.js

@@ -88,7 +88,7 @@ describe( 'create', function() {
 		var CKEDITOR = modules.ckeditor;
 
 		return CKEDITOR.create( '.undefined' ).then( function() {
-			throw( 'It should not enter this function' );
+			throw new Error( 'It should not enter this function' );
 		} ).catch( function( error ) {
 			expect( error ).to.be.instanceof( Error );
 			expect( error.message ).to.equal( 'Element not found' );