Change the last RefPtr::get() to release() in String.prototype.normalize
authorsukolsak@gmail.com <sukolsak@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Feb 2016 07:21:59 +0000 (07:21 +0000)
committersukolsak@gmail.com <sukolsak@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Feb 2016 07:21:59 +0000 (07:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=154211

Reviewed by Ryosuke Niwa.

Change the last RefPtr::get() to release() in String.prototype.normalize.

* runtime/StringPrototype.cpp:
(JSC::normalize):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196547 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/StringPrototype.cpp

index 2179d25..81debe2 100644 (file)
@@ -1,3 +1,15 @@
+2016-02-12  Sukolsak Sakshuwong  <sukolsak@gmail.com>
+
+        Change the last RefPtr::get() to release() in String.prototype.normalize
+        https://bugs.webkit.org/show_bug.cgi?id=154211
+
+        Reviewed by Ryosuke Niwa.
+
+        Change the last RefPtr::get() to release() in String.prototype.normalize.
+
+        * runtime/StringPrototype.cpp:
+        (JSC::normalize):
+
 2016-02-12  Saam barati  <sbarati@apple.com>
 
         [ES6] we have an incorrect syntax error when a callee of a function expression has the same name as a top-level lexical declaration
index 7df93e5..9a7cfdb 100644 (file)
@@ -1919,7 +1919,7 @@ static JSValue normalize(ExecState* exec, const UChar* source, size_t sourceLeng
     if (U_FAILURE(status))
         return throwTypeError(exec);
 
-    return jsString(exec, impl.get());
+    return jsString(exec, impl.release());
 }
 
 EncodedJSValue JSC_HOST_CALL stringProtoFuncNormalize(ExecState* exec)