Skip to content

Commit 3c3a454

Browse files
committed
add copyright
1 parent 773d468 commit 3c3a454

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

javascript/src/commonMain/kotlin/dev/icerock/moko/javascript/JavaScriptEngine.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ expect class JavaScriptEngine() {
88
/**
99
* Evaluate some [script] with external [context].
1010
*
11-
* @throws JavaScriptEvaluationException in case of an error in the engine evaluation
11+
* @throws JavaScriptEvaluationException in case of an error in the engine evaluation or if the
12+
* engine has already been closed.
1213
*/
1314
fun evaluate(context: Map<String, JsType>, script: String): JsType
1415

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
/*
2+
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
15
package dev.icerock.moko.javascript
26

37
class JavaScriptEvaluationException(
4-
throwable: Throwable?,
8+
cause: Throwable? = null,
59
message: String? = null
6-
) : Exception(message, throwable)
10+
) : Exception(message, cause)

0 commit comments

Comments
 (0)